package com.wm.youfangtong.ui.fragment

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import com.wm.youfangtong.R
import com.wm.youfangtong.base.BaseFragment
import com.wm.youfangtong.databinding.FragmentVerificationCodeBinding

/**
 * author: wu-meng
 * date  : 2024/04/22
 * desc  : 验证码页面
 */
class VerificationCodeFragment : BaseFragment<FragmentVerificationCodeBinding>(),
    View.OnClickListener {

    override fun getViewBinding(inflater: LayoutInflater, container: ViewGroup?): FragmentVerificationCodeBinding {
        return FragmentVerificationCodeBinding.inflate(inflater,container,false)
    }

    override fun initView() {

    }

    override fun initData() {

    }

    override fun initListener() {
        binding?.ivBack?.setOnClickListener(this)

    }

    override fun observeData() {

    }

    /**
     * 点击事件
     */
    override fun onClick(v: View?) {
        val id = v?.id
        when(id) {
            R.id.iv_back -> {
                findNavController().popBackStack()
            }
        }
    }


}